package com.yxw.live_vod_backend_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 类目规格实体类 yx_category_specification
 *
 * @author xiexuxin
 * @date 2023-12-06
 */
@Data
@TableName("yx_category_specification")
@ApiModel("类目规格实体类")
public class YxCategorySpecificationEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "specification_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty("规格id")
    private Long specificationId;

    @TableField("specification_name")
    @ApiModelProperty("规格名称")
    private String specificationName;

    @TableField("specification_value")
    @ApiModelProperty("规格值")
    private String specificationValue;

    @TableField("category_id")
    @ApiModelProperty("类目ID")
    private Long categoryId;

    @TableField("category_name")
    @ApiModelProperty("类目名称")
    private String categoryName;

    @TableField("identification")
    @ApiModelProperty("规格标识")
    private String identification;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField("update_time")
    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}
